import request from '../js/request.js'

export function addUser(data){
    return request({
        url:'/app/user/add',
        method:'post',
        data:data
    })
}

export function updateUser(data){
    return request({
        url:'/app/user/update',
        method:'put',
        data:data
    })
}

export function UserInfo(id){
    return request({
        url:'/app/user/' + id,
        method:'get'
    })
}

export function UserInfoUsername(username){
    return request({
        url:'/app/user/select?username=' + username,
        method:'get'
    })
}